package com.itheima.demo.demo03;

import java.util.LinkedList;

public class Linkedlist {
    public static void main(String[] args) {
        LinkedList<String>linked=new LinkedList<>();
        linked.add("段");
        linked.add("澧");
        linked.add("孟");
        linked.addFirst("一");
        System.out.println(linked);
        linked.addLast("二");
        System.out.println(linked);
        boolean 一 = linked.remove("一");
        System.out.println(一);
        System.out.println(linked);
        String first = linked.getFirst();
        System.out.println(first);



    }
}
